package com.bj58.mis.bigdata.mdp.sys.controller;

import com.bj58.mis.bigdata.mdp.sys.service.DataSyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dataSync")
public class DataSyncController {

    @Autowired
    private DataSyncService service;

    @RequestMapping("/syncAll")
    public String syncAll(){
        service.syncAll();
        return "同步完成";
    }
}
